/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YCKOKO
 * Date: 2022-10-21
 * Time: 18:50
 */
public class demo3 {
    public static void main(String[] args) {
        try {
            func();
            System.out.println("after try catch");
        } catch (ArrayIndexOutOfBoundsException e) {
            e.printStackTrace();
        }

    }
    public static void func() {
        int[] arr = {1, 2, 3};
        System.out.println(arr[100]);
    }
}
